// 约束医院列表请求接口
export interface ReaHospitalList {
    page: number //当前页码
    limit: number //每页记录数
    hoscode?: string //医院编号
    hosname?: string//医院名称
    hostype?: string//医院类型
    provinceCode?: string//省code
    cityCode?: string//市code
    districtCode?: string//区code
    status?: number//状态

}
// 预约挂号详情
export interface bookingRule {
    cycle: number,   //预约周期   
    releaseTime: string  //放号时间
    stopTime: string  // 放号停止时间
    quitDay: number,  //  退号周期
    quitTime: string  // 退号结束时间
    rule: string[]  //  取号地址

}
// 除了预约挂号详情
export interface HospitalSh {
    id: string,
    createTime: string,//创建时间
    updateTime: string,//更新时间
    isDeleted: number,//是否删除
    param: {
        hostypeString: string  //医院等级：二级乙等
        fullAddress: string//医院详细地址
    },
    hoscode: string,//医院编码
    hosname: string,//医院名称
    hostype: string,//医院类型
    provinceCode: string,//省code
    cityCode: string,//市code
    districtCode: string,//区code
    address: string,//地址
    logoData: string,//医院logo
    intro: string,//医院详情
    route: string,//医院详细路线
    status: number,//状态
}


// 单个医院返回列表
export interface ReqHospitallistiteam extends HospitalSh {

    bookingRule: bookingRule
}

// 多个医院返回列表
export type ReqHospitallistList = ReqHospitallistiteam[]
// 完整返回的医院数据
export interface ReqHospitallistListAll {
    content: ReqHospitallistList
    totalPages: number,
    totalElements: number,//总数量

}
// 获取单个省,区，市,医院等级 信息
export interface Reqprovince {
    id: number, //省份Id
    createTime: string,//创建时间
    updateTime: string,//更新时间
    isDeleted: number,//是否删除
    parentId: number,//父 id
    name: string,//省份名称
    value: string,//
    hasChildren: boolean//是否有市
}
//获取多个省,区，市,医院等级数据
export type ReqprovinceList = Reqprovince[]
// 医院详情列表
export interface ReqHospitalShow {
    bookingRule: bookingRule
    hospital: HospitalSh
}
// 规定返回参数接口'
export interface ReqHospitalShow {
    bookingRule: bookingRule
    hospital: HospitalSh
}
// 获取科室列表数据
export interface getdepartmentValue {
    disabled?:boolean
    depcode: string //科室代码
    depname: "专科", //科室名称
    children: null | getdepartmentValue[] //二级科室
}

export type getdepartmentValueList  = getdepartmentValue[]
